home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ABUSESRC.ZIP / AbuseSrc / imlib / port / mac / sndtst.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  572 b   |  46 lines

  1. #include "jmalloc.hpp"
  2. #include "sound.hpp"
  3.  
  4. void free_up_memory()
  5. {
  6. }
  7.  
  8. extern int jmalloc_max_size;
  9.  
  10. main()
  11. {
  12.     int argc = 0;
  13.     char *argv[] = { "" };
  14.     
  15.     jmalloc_max_size = 400000;
  16.     jmalloc_init(300000);
  17.     
  18.     sound_init(argc, argv);
  19.     
  20.     sound_effect snd("sfx_switch01.wav");
  21.     
  22.     snd.play();
  23.     snd.play();
  24.     snd.play();
  25.     snd.play();
  26.  
  27.     snd.play();
  28.     snd.play();
  29.     snd.play();
  30.     snd.play();
  31.  
  32.     while (!Button()) ;
  33.     
  34.     snd.play();
  35.     snd.play();
  36.     snd.play();
  37.     snd.play();
  38.  
  39.     snd.play();
  40.     snd.play();
  41.     snd.play();
  42.     snd.play();
  43.  
  44.     sound_uninit();
  45. }
  46.